﻿using System;
using System.IO;
using System.Web.UI;

public partial class Shared_UserControl_SiteHeader : UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ltModel.Model.article_user u = DataCaches.GetUser(int.Parse(Page.User.Identity.Name));
        if (u != null)
            currentUser.Text = string.Format("你好，[{0}]", u.truename);
        themes.SelectedValue = Path.GetFileName(Request.CurrentExecutionFilePath);
        //RemoveSkins("Black", "Sitefinity", "Outlook", "Web20");
    }

    /*void RemoveSkins(params string[] excludeNames)
    {
        RadComboBox chooser = RSM1.GetSkinChooser();
        if (chooser != null)
            foreach (string name in excludeNames)
            {
                chooser.FindItemByText(name, true).Visible = false;
            }
    }*/
}